package com.example.forumbackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.forumbackend.entity.character.User;
import com.example.forumbackend.entity.character.UserRole;
import com.example.forumbackend.mapper.UserRoleMapper;
import com.example.forumbackend.service.UserRoleService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenguo
 * @since 2021-10-04
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    @Resource
    UserRoleMapper userRoleMapper;

    @Override
    public List<UserRole> findRoleByIds(Integer id) {
        return userRoleMapper.findRoleByIds(id);
    }
}
